package com.banmoon.responsible;

import cn.hutool.core.util.StrUtil;

public class VicePresident extends Handler{

    public VicePresident() {
        super("副院长", new Dean());
    }

    @Override
    public void executeRequest(LeaveRequest request) {
        if(request.getNumber()<=14)
            System.out.println(StrUtil.format("{}批准了{}同学的{}天请假条", super.getName(), request.getName(), request.getNumber()));
        else
            super.getNextHandler().executeRequest(request);
    }
}
